package com.potato369.cryptNacos.service;

import com.potato369.cryptNacos.domain.User;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface UserService {
    User save(User user);

    void delete(User user);

    User update(User user);

    User findOne(Long id);

    List<User> findAll();
}
